using System;

namespace PropertyExpression.ControllableQuery.Toolkit.Test.Queries
{
    public class Error5Query : IQuery<IError3QueryInfo>
    {
        private readonly IParam<Guid> modelCode;
        private readonly IParam<string> modelSequence;

        public Error5Query(
            IParam<Guid> modelCode,
            IParam<string> modelSequence)
        {
            this.modelCode = modelCode;
            this.modelSequence = modelSequence;
        }

        public string TransformText()
        {
            return @"SELECT
    ModelPublication.PublicationId,
    ModelPublication.ModelCode,
    ModelPublication.ModelSequence
FROM
    ModelPublication
WHERE
    ModelPublication.ModelCode = " + modelCode + @"
    AND ModelPublication.ModelSequence = " + modelSequence;
        }
    }
}